projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5418212
)
(Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 21 Dec 2000 16:56:13 +0000
(16:56 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 21 Dec 2000 16:56:13 +0000
(16:56 +0000)
src/undo.c
patch
|
blob
|
history
diff --git
a/src/undo.c
b/src/undo.c
index 31d7c39db14ba9ab1497cc47926a781d55665fc0..40cebbac6ed1f35b2efac6f837c6937a3314a7d8 100644
(file)
--- a/
src/undo.c
+++ b/
src/undo.c
@@
-393,8
+393,9
@@
Return what remains of the list.")
{
struct gcpro gcpro1, gcpro2;
Lisp_Object next;
- int count =
specpdl_ptr - specpdl
;
+ int count =
BINDING_STACK_SIZE ()
;
register int arg;
+
#if 0 /* This is a good feature, but would make undo-start
unable to do what is expected. */
Lisp_Object tem;
@@
-415,6
+416,9
@@
Return what remains of the list.")
if (!NILP (current_buffer->read_only))
specbind (Qinhibit_read_only, Qt);
+ /* Don't let `intangible' properties interfere with undo. */
+ specbind (Qinhibit_point_motion_hooks, Qt);
+
while (arg > 0)
{
while (1)